*y -= parent->shadow_top;
}
-static void
+static GdkWindow *
translate_from_real_parent_window_geometry (GdkWindow *window,
gint *x,
gint *y)
*x -= dx - parent->shadow_left;
*y -= dy - parent->shadow_top;
+
+ return parent;
}
static void
gboolean *flipped_y)
{
GdkWindowImplWayland *impl = GDK_WINDOW_IMPL_WAYLAND (window->impl);
+ GdkWindow *parent;
+ gint window_x, window_y;
+ gint window_width, window_height;
GdkRectangle best_rect;
- translate_from_real_parent_window_geometry (window, &x, &y);
+ parent = translate_from_real_parent_window_geometry (window, &x, &y);
*final_rect = (GdkRectangle) {
.x = x,
.y = y,
.height = height,
};
+ window_x = parent->x + x;
+ window_y = parent->y + y;
+ window_width = width + window->shadow_left + window->shadow_right;
+ window_height = height + window->shadow_top + window->shadow_bottom;
+
+ gdk_window_move_resize (window,
+ window_x, window_y,
+ window_width, window_height);
+
calculate_popup_rect (window,
impl->pending_move_to_rect.rect_anchor,
impl->pending_move_to_rect.window_anchor,